package com.dance.sharevalidator.exception;

import lombok.Getter;
import lombok.Setter;

import javax.validation.ConstraintViolation;
import java.util.Map;
import java.util.Set;

@Getter
@Setter
public class ValidListException extends RuntimeException{
    private Map<Integer, Set<ConstraintViolation<Object>>> errors;

    public ValidListException(Map<Integer, Set<ConstraintViolation<Object>>> errors) {
        this.errors = errors;
    }
}
